package org.example.sb_api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.List;

@Data
@TableName("city")
public class City {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String cityName;
    private Long pid;
    
    @TableField(exist = false)
    private List<City> children;
} 